//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop

#include "DateUtilities.h"

void TDateUtilities :: validate( AnsiString date, AnsiString error)
{
   if ( date.Length() != 0)
   {
      try
      {
         StrToDate( date);
      }
      catch( EConvertError * e)
      {
         throw new Exception( error);
      }//try-catch
   }//if
}

//---------------------------------------------------------------------------

#pragma package(smart_init)
